package com.hospital.mapper;

import com.hospital.pojo.Hospusers;
import com.hospital.pojo.HospusersExample;
import java.util.List;

import com.hospital.vo.UserWithRole;
import org.apache.ibatis.annotations.Param;
import org.springframework.lang.Nullable;

public interface HospusersMapper {
    long countByExample(HospusersExample example);

    int deleteByExample(HospusersExample example);

    int deleteByPrimaryKey(Integer userid);

    int insert(Hospusers record);

    int insertSelective(Hospusers record);

    List<Hospusers> selectByExample(HospusersExample example);

    Hospusers selectByPrimaryKey(Integer userid);

    int updateByExampleSelective(@Param("record") Hospusers record, @Param("example") HospusersExample example);

    int updateByExample(@Param("record") Hospusers record, @Param("example") HospusersExample example);

    int updateByPrimaryKeySelective(Hospusers record);

    int updateByPrimaryKey(Hospusers record);

    List<UserWithRole> selectByUsername(@Nullable String username);

    int multiDel(List<Integer> userids);
}